<include file="Public:header" />
<!--编辑小区-->
<form id="info_form" action="{:U('Estate/edit')}" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="{$info.id}">
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">小区信息</li>
            <li>基础数据</li>
            <li>SEO设置</li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
                    <tr>
                        <th width="120">所属区域 :</th>
                        <td>
                            <select class="J_cate_select mr10" data-pid="0" data-menuid="1" data-uri="{:U('AreaCate/ajax_getchilds')}" data-selected="{$selected_ids}"></select>
                            <input type="hidden" name="area_id" id="J_cate_id" value="{$info.area_id}" />
                        </td>
                    </tr>
		            <tr>
						<th>小区名称 :</th>
						<td>
							<input type="text" name="title" value="{$info.title}" id="J_title" class="input-text" size="40">
		                </td>
					</tr>
                    <tr>
                        <th>建筑年代 :</th>
                        <td><input type="text" name="years" value="{$info.years}" class="input-text" size="10"> 年</td>
                    </tr>
                    <tr>
                        <th>小区类型 :</th>
                        <td>{:getLinkMenu(2,'house_type','checkbox',$house_type)}</td>
                    </tr>
                    <tr>
                        <th>地铁 :</th>
                        <td>{:getLinkMenu(8,'metro','radio',$info['metro'])}</td>
                    </tr>
                    <tr>
                        <th>小区地址 :</th>
                        <td><input type="text" name="address" id="address" value="{$info.address}" class="input-text" size="60"/> </td>
                    </tr>
                    <tr>
                        <th>地图标注：</th>
                        <td>
                            <input type="text" name="map" id="map" class="input-text" size="27" value="{$info.map}"/>
                            &nbsp;&nbsp;<a href="http://api.map.baidu.com/lbsapi/getpoint/" style="padding: 8px;color:#ffffff;background: #008000" target="_blank">获取百度地图坐标</a>
                        </td>
                    </tr>
                    <tr>
                        <th>缩略图:</th>
                        <td>
                            <notempty name="info['img']"><img src="{$info.img}" width="100" height="100"/><br /></notempty>
                            <input type="file" name="img" class="input-text"  style="width:200px;" />
                        </td>
                    </tr>
                    <tr>
                        <th>小区图片 :</th>
                        <td><script id="uploadpic" name="uploadpic" type="text/plain"></script>
                            <input type="button" class="btn btn_submit" style="margin:0 0 10px 10px;" onclick="upImage();" value="选择图片">
                            <div id="imageList">
                                <ul class="list clearfix">
                                    <volist name="img_list" id="vo">
                                        <li>
                                            <img width="113" height="113" alt="{$vo.alt}" src="{$vo.img}">
                                            <input type="hidden" value="{$vo.img}" name="pic[pic][]">
                                            <input type="text" class="imgtitletxt" value="{$vo.alt}" name="pic[alt][]">
                                            <div class="delbox"><span class="del">删除</span></div>
                                        </li>
                                    </volist>
                                </ul>
                            </div>
                            <input type="hidden" name="file" id="file" />
                        </td>
                    </tr>
                    <tr>
                        <th>{:L('publish')} :</th>
                        <td>
                            <label><input type="radio" name="status" class="radio_style" value="1" <if condition="$info.status eq '1'">checked="checked"</if>> {:L('yes')}</label>&nbsp;&nbsp;
                            <label><input type="radio" name="status" class="radio_style" value="0" <if condition="$info.status eq '0'">checked="checked"</if>> {:L('no')}</label>
                        </td>
                    </tr>
                    <tr>
                        <th>简介 :</th>
                        <td>
                            <textarea name="desc" style="width: 680px;height: 60px;">{$info.desc}</textarea>
                        </td>
                    </tr>
                    <tr>
                        <th>小区介绍 :</th>
                        <td><script id="info" name="info" type="text/plain">{$info.info}</script></td>
                    </tr>
				</table>
			</div>
            <div class="content_list pad_10 hidden">
                <table width="100%" cellspacing="0" class="table_form">
                    <tr>
                        <th>楼盘概况 :</th>
                        <td>
                            <table width="88%"  cellspacing="0" class="table_form">
                                <tr>
                                    <th width="100">建筑面积：</th>
                                    <td><input type="text" name="data[jzmj]" class="input-text" value="{$data.jzmj}" size="20" /></td>
                                    <th width="100">物业类型：</th>
                                    <td><input type="text" name="data[wylx]" class="input-text" value="{$data.wylx}" size="20" /></td>
                                    <th width="100">户型面积：</th>
                                    <td><input type="text" name="data[hxmj]" class="input-text" value="{$data.hxmj}" size="20" /></td>
                                </tr>
                                <tr>
                                    <th width="100">建筑类别：</th>
                                    <td><input type="text" name="data[jzlb]" class="input-text" value="{$data.jzlb}" size="20" /></td>
                                    <th width="100">装修情况：</th>
                                    <td><input type="text" name="data[zxqk]" class="input-text" value="{$data.zxqk}" size="20" /></td>
                                    <th width="100">产　　权：</th>
                                    <td><input type="text" name="data[chanquan]" class="input-text" value="{$data.chanquan}" size="20" /></td>
                                </tr>
                                <tr>
                                    <th width="100">户　　数：</th>
                                    <td><input type="text" name="data[hushu]" class="input-text" value="{$data.hushu}" size="20" /></td>
                                    <th width="100">容 积 率：</th>
                                    <td><input type="text" name="data[rjl]" class="input-text" value="{$data.rjl}" size="20" /></td>
                                    <th width="100">开 发 商：</th>
                                    <td><input type="text" name="data[kfs]" class="input-text" size="20" value="{$data.kfs}"/></td>
                                </tr>
                                <tr>
                                    <th width="100">绿 化 率：</th>
                                    <td><input type="text" name="data[lhl]" value="{$data.lhl}" class="input-text"  size="20" /></td>
                                    <th width="100">物业公司：</th>
                                    <td><input type="text" name="data[wygs]" value="{$data.wygs}" class="input-text" size="20" /></td>
                                    <th width="100">物 业 费：</th>
                                    <td><input type="text" name="data[wyf]" value="{$data.wyf}" class="input-text" size="20" /></td>
                                </tr>
                                <tr>
                                    <th width="100">总 栋 数：</th>
                                    <td><input type="text" name="data[zds]" value="{$data.zds}" class="input-text" size="20" /></td>
                                    <th width="100">楼层状况：</th>
                                    <td><input type="text" name="data[lczk]"  value="{$data.lczk}" class="input-text" size="20" /></td>
                                    <th width="100">车    位：</th>
                                    <td><input type="text" name="data[chewei]" value="{$data.chewei}" class="input-text" size="20" /></td>
                                </tr>
                                <tr>
                                    <th width="100">道路交通：</th>
                                    <td colspan="5"><textarea name="data[dljt]" style="width: 780px;height: 66px;">{$data.dljt}</textarea></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <th>配套信息 :</th>
                        <td>
                            <table width="88%"  cellspacing="0" class="table_form">
                                <tr>
                                    <th style="width: 100px;">商业配套：</th>
                                    <td><textarea name="data[sypt]" style="width: 780px;height: 66px;">{$data.sypt}</textarea></td>
                                </tr>
                                <tr>
                                    <th>内部配套：</th>
                                    <td><textarea name="data[nbpt]" style="width: 780px;height: 66px;">{$data.nbpt}</textarea></td>
                                </tr>
                                <tr>
                                    <th>周边商业：</th>
                                    <td><textarea name="data[zbsy]" style="width: 780px;height: 66px;">{$data.zbsy}</textarea></td>
                                </tr>
                                <tr>
                                    <th>周边景观：</th>
                                    <td><textarea name="data[zbjg]" style="width: 780px;height: 66px;">{$data.zbjg}</textarea></td>
                                </tr>
                                <tr>
                                    <th>周边医院：</th>
                                    <td><textarea name="data[zbyy]" style="width: 780px;height: 66px;">{$data.zbyy}</textarea></td>
                                </tr>
                                <tr>
                                    <th>周边学校：</th>
                                    <td><textarea name="data[zbxx]" style="width: 780px;height: 66px;">{$data.zbxx}</textarea></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="content_list pad_10 hidden">
                <table width="100%" cellspacing="0" class="table_form">
                    <tr>
                        <th width="100">{:L('seo_title')} :</th>
                        <td><input type="text" name="seo_title" id="seo_title" class="input-text" size="60" value="{$info.seo_title}"></td>
                    </tr>
                    <tr>
                        <th>{:L('seo_keys')} :</th>
                        <td><input type="text" name="seo_keys" id="seo_keys" class="input-text" size="60" value="{$info.seo_keys}"></td>
                    </tr>
                    <tr>
                        <th>{:L('seo_desc')} :</th>
                        <td><textarea name="seo_desc" id="seo_desc" cols="80" rows="8">{$info.seo_desc}</textarea></td>
                    </tr>
                </table>
            </div>
            </div>
		<div class="mt10"><input type="submit" value="{:L('submit')}" id="dosubmit" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 100px;"><br /><br /><br /></div>
	</div>
</div>
</form>
<include file="Public:footer" />
<js file="__STATIC__/ueditor/ueditor.config.js" charset="utf-8" />
<js file="__STATIC__/ueditor/ueditor.all.min.js" charset="utf-8" />
<js file="__STATIC__/ueditor/lang/zh-cn/zh-cn.js" charset="utf-8" />
<script type="text/javascript">
    window.UEDITOR_HOME_URL='__STATIC__/ueditor/';
    window.onload=function(){
        window.UEDITOR_CONFIG.initialFrameWidth=880;
        window.UEDITOR_CONFIG.initialFrameHeight=500;
        UE.getEditor('info',{autoFloatEnabled:false});
        upmoreimg(true);
    }
</script>
<script type="text/javascript">
    $(function(){
        $('ul.J_tabs').tabs('div.J_panes > div');
        $('.J_cate_select').cate_select('请选择');
        $.formValidator.initConfig({formid:"info_form",autotip:true});
        $("#J_cate_id").formValidator({onshow:"请选择区域",onfocus:"请选择区域"}).regexValidator({regexp:"intege1",datatype:"enum",onerror:"请选择区域"});
    });

   </script>
<js file="__JS__/uploadImg.js" charset="utf-8" />
</body>
</html>